package book;

public class BookList {
    private Book[] books=new Book[10];
    private int size;
    public BookList(){
        this.books[0]=new Book("鲨鱼辣椒","李富贵",20,"反派");
        this.books[1]=new Book("蝎子莱莱","王二狗",10,"反派");
        this.books[2]=new Book("蜻蜓队长","张狗蛋",60,"正义");
        this.books[3]=new Book("丸子轮","刘铁根",55,"正义");
        this.books[4]=new Book("蜘蛛侦探","赵三立",93,"正义");
        this.size=5;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos,Book books) {
        this.books[pos] = books;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
